/**
 * 14/02/2014
 * 
 * StateBO
 */
package org.cuatrovientos.erp.business;

import java.util.List;

import org.cuatrovientos.erp.dao.RoleDAOInterface;
import org.cuatrovientos.erp.dao.StateDAOInterface;
import org.cuatrovientos.erp.model.Role;
import org.cuatrovientos.erp.model.State;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * Holds all the business logic for Role related management
 * @author Inaki Torres
 */
public class RoleBO implements RoleBOInterface {

	@Autowired
	private RoleDAOInterface roleDAO;

	@Override
	public Role selectById(int id) {
		return roleDAO.selectById(id);
	}

	@Override
	public List<Role> selectAll() {
		return roleDAO.selectAll();
	}

	@Override
	public List<Role> search(String description) {
		return roleDAO.search(description);
	}

	@Override
	public void deleteById(int id) {
		roleDAO.deleteById(id);
	}

	@Override
	public void insert(Role role) {
		roleDAO.insert(role);
	}

	@Override
	public void update(Role role) {
		roleDAO.update(role);
	}

	
	
}
